//
//  EXQueryOptimizer.h
//  ORM
//
//  Created by PH on 23.12.09.
//  Copyright 2009-2010 Codesign. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ORMKeyValueStore.h"
#import "EXQuery.h"

@interface EXQueryOptimizer : NSObject {
	EXQuery* query;
}

- (id)initWithQuery:(EXQuery*)_query;
- (void(^)(void*))conditionalBlockWithKVStore:(NSObject<ORMKeyValueStore>*)KVStore;
- (void(^)(void*))inspectPredicate:(id)predicate KVStore:(NSObject<ORMKeyValueStore>*)KVStore;
- (id)inspectExpression:(NSExpression*)expression KVStore:(NSObject<ORMKeyValueStore>*)KVStore;

@end
